<?php
namespace App\Http\Controllers;

use app\Logic\Factory;
use app\Logic\Layui\Service\ImageCode;

class CodeController extends Controller
{
    public function image()
    {
        $app = Factory::Layui();
        return $app->VerificationCode(function ($app){
            return new ImageCode($app);
        })->image();
    }
}